import request from '@/utils/request';

export const getDicts = params => {
  return request({
    url: '/steel-arch/client/dict/data/list',
    params: params,
    method: 'get',
  });
};

// 库存列表查询
export const getList = params => {
  return request({
    url: '/steel-arch/material/list',
    params: params,
  });
};

// 材料入库
export const inMaterial = params => {
  return request({
    url: '/steel-arch/material/in/add',
    data: params,
    method: 'post',
  });
};

// 材料出库
export const outMaterial = params => {
  return request({
    url: '/steel-arch/material/out/add',
    data: params,
    method: 'post',
  });
};

// 材料出入库日志列表查询
export const getInventoryLogList = params => {
  return request({
    url: '/steel-arch/material/log/list',
    params: params,
  });
};
export const deleteLog = params => {
  return request({
    url: '/steel-arch/material/log/delete',
    params: params,
  });
};